package com.itcast.n5_堆内存;

import java.io.IOException;
import java.util.ArrayList;

/**
 * @program: jvm
 * @description:
 * @author: flyduck
 * @create: 2024-09-20 16:27
 **/
public class Test03_使用arthas验证是不是used_total_max三个值相等的时候就会内存溢出 {
    public static void main(String[] args) throws IOException, InterruptedException {
        ArrayList<Object> objects = new ArrayList<Object>();
        System.in.read();
        while (true) {
            objects.add(new byte[1024 * 1024 * 100]);
            Thread.sleep(2000);
        }
    }
}
